import dbmysql from "../database/dbmysql";

function echo(params) {
  return params;
}

function tables(params) {
  let linkId = params.linkId;
  let like = params.like;
  let tables = dbmysql.tables(linkId, like);
  console.log(tables);
  return tables;
}

function columns(params) {
  let linkId = params.linkId;
  let tableId = params.tableId;
  return dbmysql.columns(linkId, tableId);
}

export default { echo, tables, columns };
